#ifndef __KERNEL_INTERRUPT_H
#define __KERNEL_INTERRUPT_H
#include "stdint.h"

typedef void* intr_handler;
void idt_init(void);

/*define two status of interrupt
 * INTR_OFF value is 0, means close interrupt
 * INTR_ON value is 1, means open interrupt*/
enum intr_status {
	INTR_OFF,	//close interrupt
	INTR_ON		//open interrupt
};

enum intr_status intr_get_status(void);
enum intr_status intr_set_status(enum intr_status);
enum intr_status intr_enable(void);
enum intr_status intr_disable(void);
void register_handler(uint8_t vector_no, intr_handler function);
#endif
